Backport: Add a config to disable R2C Host retry (#14373)#14409
Open
thirtiseven wants to merge 1 commit intoNVIDIA:release/26.02from
Open
Backport: Add a config to disable R2C Host retry (#14373)#14409thirtiseven wants to merge 1 commit intoNVIDIA:release/26.02from
thirtiseven wants to merge 1 commit intoNVIDIA:release/26.02from
Conversation
Contributes to NVIDIA#14368 ### Description This pr add a config `spark.rapids.sql.rowToColumnar.retry.enabled` to disable the per-row retry introduced in NVIDIA#13842, which caused performance issues in some cases. Also added a test. ### Checklists - [ ] This PR has added documentation for new or modified features or behaviors. - [x] This PR has added new tests or modified existing tests to cover new code paths. (Please explain in the PR description how the new code paths are tested, such as names of the new/existing tests that cover them.) - [ ] Performance testing has been performed and its results are added in the PR description. Or, an issue has been filed with a link in the PR description. --------- Signed-off-by: Haoyang Li <haoyangl@nvidia.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Sameer Raheja <sameerz@users.noreply.github.com>
Collaborator
Author
|
build |
Contributor
Greptile SummaryThis PR adds an internal config
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["RowToColumnarIterator.buildBatch()"] --> B{enableRetry?}
B -- true --> C["Create RetryableRowConverter\n(with UnsafeProjection)"]
C --> D["converter.attempt(rowIter.next())"]
D --> E["withRetryNoSplit {\n withRestoreOnRetry(converter) {\n converters.convert(currentRow, builders)\n }\n}"]
E -- OOM --> F["converter.restore()\nRollback builders + copy row"]
F --> E
E -- success --> G["byteCount += bytesWritten\nrowCount += 1"]
B -- false --> H["val row = rowIter.next()"]
H --> I["converters.convert(row, builders)"]
I -- OOM --> J["CpuRetryOOM propagates\n(task may fail)"]
I -- success --> K["byteCount += bytes\nrowCount += 1"]
G --> L{more rows\nwithin target?}
K --> L
L -- yes --> D
L -- yes --> H
L -- no --> M["withRetryNoSplit {\n builders.tryBuild(rowCount)\n}"]
M --> N["return ColumnarBatch"]
Last reviewed commit: a3f34e9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributes to #14368
Description
This pr add a config
spark.rapids.sql.rowToColumnar.retry.enabledto disable the per-row retry introduced in #13842, which caused performance issues in some cases.Also added a test.
Checklists
(Please explain in the PR description how the new code paths are tested, such as names of the new/existing tests that cover them.)